﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace TerritoryGame.Infrastructure.Migrations
{
    /// <inheritdoc />
    public partial class AddUserInit8 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<DateTime>(
                name: "updated_at",
                table: "user_levels",
                type: "timestamp with time zone",
                nullable: false,
                defaultValue: new DateTime(2025, 8, 20, 16, 52, 23, 588, DateTimeKind.Utc).AddTicks(7736),
                oldClrType: typeof(DateTime),
                oldType: "timestamp with time zone",
                oldDefaultValue: new DateTime(2025, 8, 19, 17, 0, 43, 156, DateTimeKind.Utc).AddTicks(9350));

            migrationBuilder.AlterColumn<DateTime>(
                name: "created_at",
                table: "user_levels",
                type: "timestamp with time zone",
                nullable: false,
                defaultValue: new DateTime(2025, 8, 20, 16, 52, 23, 588, DateTimeKind.Utc).AddTicks(6704),
                oldClrType: typeof(DateTime),
                oldType: "timestamp with time zone",
                oldDefaultValue: new DateTime(2025, 8, 19, 17, 0, 43, 156, DateTimeKind.Utc).AddTicks(8813));

            migrationBuilder.AlterColumn<Guid>(
                name: "winner_id",
                table: "game_records",
                type: "uuid",
                nullable: true,
                oldClrType: typeof(Guid),
                oldType: "uuid");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<DateTime>(
                name: "updated_at",
                table: "user_levels",
                type: "timestamp with time zone",
                nullable: false,
                defaultValue: new DateTime(2025, 8, 19, 17, 0, 43, 156, DateTimeKind.Utc).AddTicks(9350),
                oldClrType: typeof(DateTime),
                oldType: "timestamp with time zone",
                oldDefaultValue: new DateTime(2025, 8, 20, 16, 52, 23, 588, DateTimeKind.Utc).AddTicks(7736));

            migrationBuilder.AlterColumn<DateTime>(
                name: "created_at",
                table: "user_levels",
                type: "timestamp with time zone",
                nullable: false,
                defaultValue: new DateTime(2025, 8, 19, 17, 0, 43, 156, DateTimeKind.Utc).AddTicks(8813),
                oldClrType: typeof(DateTime),
                oldType: "timestamp with time zone",
                oldDefaultValue: new DateTime(2025, 8, 20, 16, 52, 23, 588, DateTimeKind.Utc).AddTicks(6704));

            migrationBuilder.AlterColumn<Guid>(
                name: "winner_id",
                table: "game_records",
                type: "uuid",
                nullable: false,
                defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
                oldClrType: typeof(Guid),
                oldType: "uuid",
                oldNullable: true);
        }
    }
}
